import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';

export const NotPage = () => {
  const navigate = useNavigate();
  return (
    <div className='flex justify-center items-center h-screen'>
      <Result
      status="404"
      title="暂无此页面"
      subTitle="很抱歉，暂无此页面"
      extra={<Button type="primary"  onClick={() => navigate("/")}>返回首页</Button>}
    />
    </div>
  )
}
